#ifndef GAMECLIENT_H
#define GAMECLIENT_H

#include <game/game.h>

#include <QHostAddress>

class QUdpSocket;
class NetworkPlayer;

class GameClient : public Game
{
    Q_OBJECT;
public:
    GameClient(KeyManager *manager, QString adr, quint16 port, QObject *parent = 0);

    void timerEvent(QTimerEvent *);

    void play();
    void pause();

private slots:
    void readPendingDatagrams();
private:
    QUdpSocket *mySocket;
    QHostAddress myServerAddr;
    quint16 myPort;

    NetworkPlayer * myNetPlayer;

    bool first;
};

#endif // GAMECLIENT_H
